package com.zmn.mcc.services.impl.role;


import com.zmn.mcc.common.dto.role.McRoleChangeLogQuery;
import com.zmn.mcc.model.entity.role.McRoleChangeLog;
import com.zmn.mcc.persistence.interfaces.role.RoleChangeLogDao;
import com.zmn.mcc.services.interfaces.role.RoleChangeLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author: xuyanghong
 * @since: 2022-07-18
 * description:
 */

@Service
public class RoleChangeLogServiceImpl implements RoleChangeLogService {

    @Resource
    private RoleChangeLogDao roleChangeLogDao;

    @Override
    public McRoleChangeLog findByKey(Long id) {
        return roleChangeLogDao.findByKey(id);
    }

    @Override
    public List<McRoleChangeLog> listPageByQuery(McRoleChangeLogQuery query) {
        return roleChangeLogDao.listPageByQuery(query);
    }

    @Override
    public List<McRoleChangeLog> listByQuery(McRoleChangeLogQuery query) {
        return roleChangeLogDao.listByQuery(query);
    }

    @Override
    public Integer countByQuery(McRoleChangeLogQuery query) {
        return roleChangeLogDao.countByQuery(query);
    }

    @Override
    public Integer insert(McRoleChangeLog record) {
        return roleChangeLogDao.insert(record);
    }

    @Override
    public Integer updateByKey(McRoleChangeLog record) {
        return roleChangeLogDao.updateByKey(record);
    }


}